package ZJX_net

import "TCP-sever/interface"

type Request struct {
	//已经和客户端建立好的连接
	conn ZJX_interface.IConnection
	//客户端请求的数据\
	msg ZJX_interface.IMessage
}

func (r *Request) GetConnection() ZJX_interface.IConnection {
	return r.conn
}

func (r *Request) GetData() []byte {
	return r.msg.GetData()
}

func (r *Request) GetMsgId() uint32 {
	return r.msg.GetId()
}

func (r *Request) GetMsgLen() uint32 {
	return r.msg.GetDataLen()
}
